package com.example.zheng.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.zheng.entity.Counts;
import com.example.zheng.entity.GroupBuildingVo;
import com.example.zheng.entity.Repairbill;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zheng
 * @since 2022-01-11
 */
public interface RepairbillMapper extends BaseMapper<Repairbill> {
    //@Select("SELECT count(*) theCount, repairType type from repairbill GROUP BY repairType")
    public List<Counts> selectAllCountFromType();

    public List<Counts> selectAllCountAndState();

    public List<Counts> selectOneYearCountChange();

    public List<Counts> selectOneYearSouthCountChange(String address);

    public List<GroupBuildingVo> selectCountFromGroupBuilding();

    public List<Counts> selectCountFromGroupGrade();
}
